home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / WAIS / next-ui / DragDrop.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-12-20  |  2.4 KB  |  80 lines

  1. /* DragDrop.c generated from DragDrop.psw
  2.    by unix pswrap V1.009  Wed Apr 19 17:50:24 PDT 1989
  3.  */
  4.  
  5. #include <dpsclient/dpsfriends.h>
  6. #include <string.h>
  7.  
  8. #line 1 "DragDrop.psw"
  9. #line 10 "DragDrop.c"
  10. void copyIconPicture(int win, float x, float y, float w, float h)
  11. {
  12.   typedef struct {
  13.     unsigned char tokenType;
  14.     unsigned char topLevelCount;
  15.     unsigned short nBytes;
  16.  
  17.     DPSBinObjReal obj0;
  18.     DPSBinObjReal obj1;
  19.     DPSBinObjReal obj2;
  20.     DPSBinObjReal obj3;
  21.     DPSBinObjGeneric obj4;
  22.     DPSBinObjGeneric obj5;
  23.     DPSBinObjGeneric obj6;
  24.     DPSBinObjGeneric obj7;
  25.     DPSBinObjGeneric obj8;
  26.     DPSBinObjGeneric obj9;
  27.     DPSBinObjGeneric obj10;
  28.     DPSBinObjGeneric obj11;
  29.     DPSBinObjGeneric obj12;
  30.     } _dpsQ;
  31.   static const _dpsQ _dpsStat = {
  32.     DPS_DEF_TOKENTYPE, 13, 108,
  33.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: x */
  34.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: y */
  35.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: w */
  36.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: h */
  37.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 78},    /* gsave */
  38.     {DPS_LITERAL|DPS_INT, 0, 0, 0},    /* param: win */
  39.     {DPS_EXEC|DPS_NAME, 0, 0, 0},    /* windowdeviceround */
  40.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 79},    /* gstate */
  41.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 77},    /* grestore */
  42.     {DPS_LITERAL|DPS_INT, 0, 0, 0},
  43.     {DPS_LITERAL|DPS_INT, 0, 0, 0},
  44.     {DPS_EXEC|DPS_NAME, 0, 0, 0},    /* Copy */
  45.     {DPS_EXEC|DPS_NAME, 0, 0, 0},    /* composite */
  46.     }; /* _dpsQ */
  47.   _dpsQ _dpsF;    /* local copy  */
  48.   register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
  49.   register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
  50.   static long int _dpsCodes[3] = {-1};
  51.   {
  52. if (_dpsCodes[0] < 0) {
  53.     static const char * const _dps_names[] = {
  54.     "windowdeviceround",
  55.     "Copy",
  56.     "composite"};
  57.     long int *_dps_nameVals[3];
  58.     _dps_nameVals[0] = &_dpsCodes[0];
  59.     _dps_nameVals[1] = &_dpsCodes[1];
  60.     _dps_nameVals[2] = &_dpsCodes[2];
  61.  
  62.     DPSMapNames(_dpsCurCtxt, 3, _dps_names, _dps_nameVals);
  63.     }
  64.   }
  65.  
  66.   _dpsF = _dpsStat;    /* assign automatic variable */
  67.  
  68.   _dpsP[5].val.integerVal = win;
  69.   _dpsP[0].val.realVal = x;
  70.   _dpsP[1].val.realVal = y;
  71.   _dpsP[2].val.realVal = w;
  72.   _dpsP[3].val.realVal = h;
  73.   _dpsP[6].val.nameVal = _dpsCodes[0];
  74.   _dpsP[11].val.nameVal = _dpsCodes[1];
  75.   _dpsP[12].val.nameVal = _dpsCodes[2];
  76.   DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,108);
  77. }
  78. #line 3 "DragDrop.psw"
  79.  
  80.